//
//  Karte.h
//  Lextra Junior ueb IT
//
//  Created by Dirk Lieder on 04.08.11.
//  Copyright 2011 Phosphon. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Karte : NSObject {
    
    NSDictionary *info;
    BOOL media;     // ton / bild
    CGPoint speed;  // Pixelgeschwindigkeit pro Frame in x-, y-Richtung
    CGPoint pos;    // aktuelle Position
 
    bool callback;   
    bool callback2;   
    
    UIImage *front,*back; 
    UIImageView *imageView;

    @private id Delegate;
    UIView *DelegateView;

    // time and animation
    bool animationRunning;
    float animationPosition;
    int animationPhase,animationTarget;

}
@property (nonatomic, retain)IBOutlet UIImageView *imageView;
@property (nonatomic, retain)IBOutlet UIImage *front,*back;
@property (nonatomic, retain)IBOutlet UIView *DelegateView;



- (id)initWithElement: (NSDictionary *) element

                media: (BOOL) ton
                speed: (CGPoint) sxy 
                  pos: (CGPoint) pxy
             Delegate: (id)new_delegate
         DelegateView: (UIView*) view;

-(void) setPos: (CGPoint) pxy;
- (void)showCard;
- (void)showCardCallback;
- (void)hideCard;
- (void)delite;

- (void)renderCard;

- (void)remove;

@end
